package com.cy.dda.dao.mapper.collection;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.dda.model.domain.collection.RepayRecord;
import com.cy.dda.model.query.collection.RepayRecordListAdminQuery;
import com.cy.dda.model.query.collection.RepayRecordListQuery;
import com.cy.dda.model.vo.collection.CollectionRecordDetailInfoAdminVO;
import com.cy.dda.model.vo.collection.RepayRecordListAdminVO;
import com.cy.dda.model.vo.collection.RepayRecordListVO;

import tk.mybatis.mapper.common.BaseMapper;

/**
 * RepayRecord
 *
 * @author: tanyilin
 * @create: 2018年11月2日 下午4:06:10
 */
@Mapper
public interface RepayRecordMapper extends BaseMapper<RepayRecord> {

	/**
	 * 查询，后台回款记录总条数
	 * 
	 * @param query
	 * @return
	 */
	int selectRepayRecordListAdminCount(RepayRecordListAdminQuery query);
	
	/**
	 * 查询，后台回款记录列表
	 * 
	 * @param query
	 * @return
	 */
	List<RepayRecordListAdminVO> selectRepayRecordListAdmin(RepayRecordListAdminQuery query);
	
	/**
	 * 后台-查询回款记录信息详情
	 * 
	 * @param repayRecordId
	 * @return
	 */
	CollectionRecordDetailInfoAdminVO selectRepayRecordDetailInfoAdminVO(@Param("repayRecordId") Long repayRecordId);
	
	/**
	 * 查询，前台回款记录总条数
	 * 
	 * @param query
	 * @return
	 */
	int selectRepayRecordListCount(RepayRecordListQuery query);
	
	/**
	 * 查询，前台回款记录列表
	 * 
	 * @param query
	 * @return
	 */
	List<RepayRecordListVO> selectRepayRecordList(RepayRecordListQuery query);
}
